package cn.qyd.javaextend;

public class Dog extends Animal{
    public Dog(String name) {
        super(name);
    }

    public Dog(String name, String food) {
        super(name, food);
    }

    public void watchHouse(){
        System.out.println(name + " is watching house!!!");
    }

    public void eat() {
        super.eat();
        System.out.println(name + "   eating   " + food);
    }
}
